import request from '@/utils/request'

// 查询金刚区分类列表
export function listClassification(query) {
  return request({
    url: '/system/classification/list',
    method: 'get',
    params: query
  })
}

// 查询金刚区分类详细
export function getClassification(kinClassificationId) {
  return request({
    url: '/system/classification/' + kinClassificationId,
    method: 'get'
  })
}

// 新增金刚区分类
export function addClassification(data) {
  return request({
    url: '/system/classification',
    method: 'post',
    data: data
  })
}

// 修改金刚区分类
export function updateClassification(data) {
  return request({
    url: '/system/classification',
    method: 'put',
    data: data
  })
}

// 删除金刚区分类
export function delClassification(kinClassificationId) {
  return request({
    url: '/system/classification/' + kinClassificationId,
    method: 'delete'
  })
}

// 导出金刚区分类
export function exportClassification(query) {
  return request({
    url: '/system/classification/export',
    method: 'get',
    params: query
  })
}